package com.hzh.service.impl;

import com.hzh.dao.OrderMapper;
import com.hzh.entity.Order;
import com.hzh.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 业务层实现类
 */
@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    private OrderMapper orderMapper;

    /**
     * 查询所有用户订单
     *
     * @return 实体类
     */
    @Override
    public List<Order> findAll() {
        return orderMapper.findAll();
    }
}
